From 7a7839ab5a3d12fdf0ed3e4a1c1bb58de0387be1 Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Tue, 23 Nov 2010 19:33:30 +0000 Subject: [PATCH] tools/xl: only use the special "--incoming" name on actual migration Only use the special "--incoming" name on actual migration and not on every susequent reboot. Signed-off-by: Tim Deegan Signed-off-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 199217046f..5ff933bcb7 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1824,6 +1824,10 @@ start: /* Some settings only make sense on first boot. */ paused = 0; + if (common_domname + && strcmp(d_config.c_info.name, common_domname)) { + d_config.c_info.name = strdup(common_domname); + } /* * XXX FIXME: If this sleep is not there then domain -- 2.30.2